<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>定位</title>
    <style>
      .father {
        width: 80vw;
        height: 50vw;
        border: 1px solid #000;
        position: relative;
      }

      .one {
        width: 20vw;
        height: 10vw;
        background-color: orange;
        position: absolute;
        left: 30vw;
        top: 30vw;
      }

      .two {
        width: 20vw;
        height: 10vw;
        background-color: green;
        position: absolute;
        right: 0vw;
        bottom: 0vw;
      }
    </style>
  </head>
  <body>
    <div class="father">
      <div class="one">one</div>
      <div class="two">two</div>
    </div>
  </body>
</html>
